#include <auto/autodelete.h>

template<typename T>
AutoDelete<T>::AutoDelete(T* pointer) :
    mPointer(pointer)
{
}

template<typename T>
AutoDelete<T>::~AutoDelete() {
    if (mPointer != nullptr) {
        delete mPointer;
    }
}
